package cc.openhome;

import cc.openhome.Swimmer;

/**
 * Created by xuzhihan on 17/3/19.
 */

    public  abstract class Fish implements Swimmer {
        protected String name;

    public Fish(String name)
    {
        this.name=name;
    }
    /*private String name;
     public void setname(String name){
         this.name=name;
     }*/
    public String getName(){
        return name;
    }


    @Override
    public abstract void swim();
    }

